﻿using WS.EKA.Model;
using System.Collections.Generic;
using System;

namespace WS.EKA.DataAccess
{
    public class ProductContext : DBContext<Product>
    {
        public static List<string> GetImages(Guid productGuid)
        {
            string sql = string.Format(@"SELECT DISTINCT OriginalImge FROM dbo.ShopNum1_ProductImage 
                                        WHERE ProductGuid='{0}' AND IsDeleted=0",productGuid);
            var result = Exec3SQL<string>(sql);
            return result as List<string>;
            
        }
    }
}
